package com.zhangyanqiang.rabbitmqdemo.mq.consumer;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;

import java.nio.charset.Charset;
import java.util.Base64;
import java.util.Map;

/**
 * @author zhangyanqiang
 * @date 2020/4/19
 **/
@Component
public class ReceiveMessageConsumer2 {

    //@RabbitListener(queues = "ttlQueue")
    public void processttlQueueKeyMessage(Message message){

        String json = new String(message.toString().getBytes(), Charset.defaultCharset());
        System.out.println("receiving ttlQueue message "+ message);

    }
}
